feat(userflags): tip presets for preferred currency#1115
Merged
Conversation
Sync flipcash protos: UserFlags gains field 15 `repeated TipPresets tip_presets`, plus a new `TipPresets` message (region + minimum/low/ medium/high tip amounts per currency).
Map the new UserFlags.tip_presets proto field through the domain layer and expose it read-only in the flags debug screen. - TipPresets domain model + field on UserFlags (Default empty) + mapper - CachedTipPresets serializable mirror in UserFlagsCoordinator so presets survive the persisted flags cache - ResolvedUserFlags carries tipPresets read-only (no override) - Flags debug screen renders only the preferred currency's preset, formatted as Fiat values (falls back to USD if unresolved)
bmc08gt
force-pushed
the
feat/flipcash-tip-presets
branch
from
July 22, 2026 00:39
a992795 to
c1e0637
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Syncs the flipcash protos and wires the new
UserFlags.tip_presetsfield through the domain layer, surfacing it read-only in the flags debug screen.UserFlagsgained field 15repeated TipPresets tip_presets(each: acommon.v1.Regioncurrency-code +minimum/low/medium/highamounts). No RPC changes.Changes
chore(protos)— regenerated flipcash protos (TipPresetsmessage +UserFlags.tip_presets).feat(userflags)TipPresetsdomain model +tipPresets: List<TipPresets>onUserFlags(defaults empty) + mapperCachedTipPresetsserializable mirror inUserFlagsCoordinatorso presets survive the persisted flags cacheResolvedUserFlagscarriestipPresetsread-only (no debug override — a repeated struct does not fit theFieldeditor)PreferredCurrencyController), formatted asFiatvalues; falls back to USD if the currency cannot be resolvedTesting
UserFlagsMapperTest: 2 new tests (maps presets; empty by default) — passing:definitions:flipcash:models,:services:flipcash,:apps:flipcash:shared:userflags,:apps:flipcash:features:userflags, and full:apps:flipcash:app:assembleDebugall build